package com.nineclock.document.service;

import com.nineclock.document.dto.DocFileDto;
import com.nineclock.document.dto.DocFolderDto;
import com.nineclock.document.dto.DocumentDto;

import java.io.UnsupportedEncodingException;

public interface DocumentService {
    DocumentDto queryFolderAndFile(Long parentFolderId);


    void insertFolder(DocFolderDto docFolderDto);

    void insertFile(DocFileDto docFileDto);

    DocFileDto getFileByFileId(Long fileId);

    void updateFile(DocFileDto docFileDto) throws UnsupportedEncodingException;

    DocumentDto pagingFile(Integer page, Integer pageSize, String keyword);
}
